package com.cy.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cy.common.vo.IndexCate;
import com.cy.common.vo.JsonResult;
import com.cy.service.SysCateService;

/**  
 * @Title:  SysCateController.java   
 * @Package com.cy.controller   
 * @Description:    描述   
 * @author: ZHANGSIMIN     
 * @date:   2019年10月22日 下午3:24:33   
 * @version V1.0 
 */
@Controller
@RequestMapping("/Cate/")
public class SysCateController {
	
	@Autowired
	private SysCateService sysCateService;
	
	@RequestMapping("getIndexCate")
	@ResponseBody
	public JsonResult getIndexCate() {
		IndexCate cateList = sysCateService.getCateList();
		return new JsonResult(cateList);
	}
}
